// 目录 路由

const router = require("koa-router")()

const {
    catalogueApi
} = require("../../../controller/catalogue/catalogue")

const {
    check
} = require("../../../middleware/routercheck")

router.get("/catalogue/:id",check("getcatalogue"), catalogueApi)
router.get("/catalogue",check("getcatalogue"), catalogueApi)
router.post("/catalogue",check("createcatalogue"), catalogueApi)
router.put("/catalogue/:id",check("editcatalogue"), catalogueApi)
router.delete("/catalogue/:id",check("removecatalogue"), catalogueApi)


module.exports = router